﻿using GraphProcessor;
using IQIGame.Onigao.Logic;
using UnityEngine;

namespace IQIGame.Onigao.GamePlay.Editors
{
    [System.Serializable, NodeMenuItem(SkillEditorConst.SkillEffective + "/" + SkillEditorConst.InsertSkill, typeof(SkillEditorGraph))]
    public class SkillEffectiveNode_InsertSkill : SkillEffectiveNode
    {
        protected override ESkillEffectiveType effectType => ESkillEffectiveType.InsertSkill;
        
        [InspectorName("技能ID")] public int skillID;
        
        protected override SkillCustomConfig CreateConfig()
        {
            var rConfig = new SkillEffective_InsertSkill_ConfigData()
            {
                skillID = this.skillID
            };
            return rConfig;
        }
    }
}